<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/7/15 0015
  Time: 22:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>下单</title>
    <script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.5.1/jquery.min.js"></script>
    <script>
        $(document).ready(function(){
            $("#saveOrder").click(function(){
                var userId = $("#userId").val();
                var amount = $("#amount").val();
                if(!userId|| !amount){
                    return;
                }
                window.location.href="/order/save?userId="+userId+"&amount="+amount;
            })
        })
    </script>

</head>
<body>
    用户ID：<input type="text" id="userId"  /><br>
    金额：<input type="text" id="amount"  /><br>
    <button id="saveOrder">下单</button>

</body>
</html>
